.class public Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;
.super Lcom/waiqin365/lightapp/kehu/view/CMCustomView;

# interfaces
.implements Ljava/util/Observer;


# instance fields
.field private a:Landroid/view/View;

.field private b:Landroid/widget/ImageView;

.field private c:Landroid/widget/TextView;

.field private d:Landroid/widget/RelativeLayout;

.field private e:Landroid/widget/TextView;

.field private f:Landroid/view/View;

.field private g:Landroid/content/Context;

.field private h:Landroid/app/Activity;

.field private i:Ljava/lang/String;

.field private s:Z

.field private t:Lcom/waiqin365/lightapp/kehu/b/am;

.field private u:Lcom/waiqin365/lightapp/view/af;


# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 1

    invoke-direct {p0, p1, p2}, Lcom/waiqin365/lightapp/kehu/view/CMCustomView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->s:Z

    invoke-direct {p0, p1}, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->a(Landroid/content/Context;)V

    return-void
.end method

.method private a(Landroid/content/Context;)V
    .locals 3

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->isInEditMode()Z

    move-result v0

    if-eqz v0, :cond_0

    :goto_0
    return-void

    :cond_0
    iput-object p1, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->g:Landroid/content/Context;

    check-cast p1, Landroid/app/Activity;

    iput-object p1, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->h:Landroid/app/Activity;

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->g:Landroid/content/Context;

    const v1, 0x7f03000a

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->a:Landroid/view/View;

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->a:Landroid/view/View;

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->addView(Landroid/view/View;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->a:Landroid/view/View;

    const v1, 0x7f0c0055

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->b:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->a:Landroid/view/View;

    const v1, 0x7f0c0056

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->c:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->a:Landroid/view/View;

    const v1, 0x7f0c0057

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    iput-object v0, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->d:Landroid/widget/RelativeLayout;

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->a:Landroid/view/View;

    const v1, 0x7f0c0058

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->e:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->a:Landroid/view/View;

    const v1, 0x7f0c005a

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->f:Landroid/view/View;

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->a:Landroid/view/View;

    new-instance v1, Lcom/waiqin365/lightapp/view/ae;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/view/ae;-><init>(Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    goto :goto_0
.end method

.method private a(Lcom/waiqin365/lightapp/kehu/b/am;)V
    .locals 2

    if-eqz p1, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->e:Landroid/widget/TextView;

    if-eqz v0, :cond_1

    iput-object p1, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->t:Lcom/waiqin365/lightapp/kehu/b/am;

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->t:Lcom/waiqin365/lightapp/kehu/b/am;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/b/am;->a:Ljava/lang/String;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v0

    if-lez v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->t:Lcom/waiqin365/lightapp/kehu/b/am;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/b/am;->d:Ljava/lang/String;

    if-eqz v0, :cond_2

    invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v1

    if-lez v1, :cond_2

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->setContent(Ljava/lang/String;)V

    :cond_0
    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->u:Lcom/waiqin365/lightapp/view/af;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->u:Lcom/waiqin365/lightapp/view/af;

    iget-object v1, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->t:Lcom/waiqin365/lightapp/kehu/b/am;

    invoke-interface {v0, v1}, Lcom/waiqin365/lightapp/view/af;->a(Lcom/waiqin365/lightapp/kehu/b/am;)V

    :cond_1
    return-void

    :cond_2
    const-string/jumbo v0, ""

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->setContent(Ljava/lang/String;)V

    goto :goto_0
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;)Z
    .locals 1

    iget-boolean v0, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->s:Z

    return v0
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;)V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->f()V

    return-void
.end method

.method private f()V
    .locals 4

    const/4 v3, 0x1

    invoke-static {}, Lcom/waiqin365/lightapp/view/a/b;->a()Ljava/util/Observable;

    move-result-object v0

    invoke-virtual {v0, p0}, Ljava/util/Observable;->addObserver(Ljava/util/Observer;)V

    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->h:Landroid/app/Activity;

    const-class v2, Lcom/waiqin365/lightapp/kehu/OfflineCmSelectActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    new-instance v1, Lcom/waiqin365/lightapp/kehu/b/cc;

    invoke-direct {v1}, Lcom/waiqin365/lightapp/kehu/b/cc;-><init>()V

    iget-object v2, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->n:Ljava/lang/String;

    iput-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/cc;->g:Ljava/lang/String;

    const-string/jumbo v2, "2"

    iput-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/cc;->e:Ljava/lang/String;

    iget-object v2, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->i:Ljava/lang/String;

    iput-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/cc;->c:Ljava/lang/String;

    iput-boolean v3, v1, Lcom/waiqin365/lightapp/kehu/b/cc;->b:Z

    iput-boolean v3, v1, Lcom/waiqin365/lightapp/kehu/b/cc;->a:Z

    const/4 v2, 0x0

    iput-boolean v2, v1, Lcom/waiqin365/lightapp/kehu/b/cc;->k:Z

    new-instance v2, Landroid/os/Bundle;

    invoke-direct {v2}, Landroid/os/Bundle;-><init>()V

    const-string/jumbo v3, "param"

    invoke-virtual {v2, v3, v1}, Landroid/os/Bundle;->putSerializable(Ljava/lang/String;Ljava/io/Serializable;)V

    invoke-virtual {v0, v2}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->h:Landroid/app/Activity;

    invoke-virtual {v1, v0}, Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->h:Landroid/app/Activity;

    const v1, 0x7f040022

    const v2, 0x7f040021

    invoke-virtual {v0, v1, v2}, Landroid/app/Activity;->overridePendingTransition(II)V

    return-void
.end method


# virtual methods
.method public c()Ljava/lang/CharSequence;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->c:Landroid/widget/TextView;

    invoke-virtual {v0}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v0

    return-object v0
.end method

.method public e()Lcom/waiqin365/lightapp/kehu/b/am;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->t:Lcom/waiqin365/lightapp/kehu/b/am;

    return-object v0
.end method

.method public n()V
    .locals 1

    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->setSelectedCustomer(Lcom/waiqin365/lightapp/kehu/b/am;)V

    return-void
.end method

.method protected onDetachedFromWindow()V
    .locals 1

    invoke-static {}, Lcom/waiqin365/lightapp/view/a/b;->a()Ljava/util/Observable;

    move-result-object v0

    invoke-virtual {v0, p0}, Ljava/util/Observable;->deleteObserver(Ljava/util/Observer;)V

    invoke-super {p0}, Lcom/waiqin365/lightapp/kehu/view/CMCustomView;->onDetachedFromWindow()V

    return-void
.end method

.method public setBottomLineStatus(Z)V
    .locals 2

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->f:Landroid/view/View;

    if-eqz v0, :cond_0

    if-eqz p1, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->f:Landroid/view/View;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->f:Landroid/view/View;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    goto :goto_0
.end method

.method public setCmId(Ljava/lang/String;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->i:Ljava/lang/String;

    return-void
.end method

.method public setContent(Ljava/lang/String;)V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->e:Landroid/widget/TextView;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->e:Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :cond_0
    return-void
.end method

.method public setEdit(Z)V
    .locals 0

    iput-boolean p1, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->s:Z

    return-void
.end method

.method public setEnabled(Z)V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->a:Landroid/view/View;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->a:Landroid/view/View;

    invoke-virtual {v0, p1}, Landroid/view/View;->setEnabled(Z)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->a:Landroid/view/View;

    invoke-virtual {v0, p1}, Landroid/view/View;->setClickable(Z)V

    :cond_0
    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/kehu/view/CMCustomView;->setEnabled(Z)V

    return-void
.end method

.method public setHint(Ljava/lang/CharSequence;)V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->e:Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setHint(Ljava/lang/CharSequence;)V

    return-void
.end method

.method public setLabel(Ljava/lang/CharSequence;)V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->c:Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-void
.end method

.method public setLabelSize(F)V
    .locals 2

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->c:Landroid/widget/TextView;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->c:Landroid/widget/TextView;

    const/4 v1, 0x2

    invoke-virtual {v0, v1, p1}, Landroid/widget/TextView;->setTextSize(IF)V

    :cond_0
    return-void
.end method

.method public setMustinput(Ljava/lang/String;)V
    .locals 2

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/kehu/view/CMCustomView;->setMustinput(Ljava/lang/String;)V

    const-string/jumbo v0, "1"

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-boolean v0, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->s:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->b:Landroid/widget/ImageView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    :cond_0
    return-void
.end method

.method public setOnCustomerSelectListener(Lcom/waiqin365/lightapp/view/af;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->u:Lcom/waiqin365/lightapp/view/af;

    return-void
.end method

.method public setSelectedCustomer(Lcom/waiqin365/lightapp/kehu/b/am;)V
    .locals 2

    if-nez p1, :cond_0

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->t:Lcom/waiqin365/lightapp/kehu/b/am;

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->e:Landroid/widget/TextView;

    const-string/jumbo v1, ""

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :goto_0
    return-void

    :cond_0
    invoke-direct {p0, p1}, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->a(Lcom/waiqin365/lightapp/kehu/b/am;)V

    goto :goto_0
.end method

.method public update(Ljava/util/Observable;Ljava/lang/Object;)V
    .locals 2

    if-eqz p2, :cond_0

    instance-of v0, p2, Lcom/waiqin365/lightapp/view/a/a;

    if-eqz v0, :cond_0

    iget-object v1, p0, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->n:Ljava/lang/String;

    move-object v0, p2

    check-cast v0, Lcom/waiqin365/lightapp/view/a/a;

    iget-object v0, v0, Lcom/waiqin365/lightapp/view/a/a;->a:Ljava/lang/String;

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    move-object v0, p2

    check-cast v0, Lcom/waiqin365/lightapp/view/a/a;

    iget-object v0, v0, Lcom/waiqin365/lightapp/view/a/a;->b:Ljava/lang/Object;

    instance-of v0, v0, Lcom/waiqin365/lightapp/kehu/b/am;

    if-eqz v0, :cond_0

    check-cast p2, Lcom/waiqin365/lightapp/view/a/a;

    iget-object v0, p2, Lcom/waiqin365/lightapp/view/a/a;->b:Ljava/lang/Object;

    check-cast v0, Lcom/waiqin365/lightapp/kehu/b/am;

    invoke-static {}, Lcom/waiqin365/lightapp/view/a/b;->a()Ljava/util/Observable;

    move-result-object v1

    invoke-virtual {v1, p0}, Ljava/util/Observable;->deleteObserver(Ljava/util/Observer;)V

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/view/AgencySelectView_vertical;->a(Lcom/waiqin365/lightapp/kehu/b/am;)V

    :cond_0
    return-void
.end method
